Socket
Socket
Sign inDemoInstall

@pm2/io

Package Overview
Dependencies
Maintainers
2
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pm2/io

PM2.io NodeJS APM


Version published
Weekly downloads
1.4M
decreased by-10.46%
Maintainers
2
Weekly downloads
 
Created

What is @pm2/io?

@pm2/io is a monitoring and metrics collection tool for Node.js applications. It provides real-time monitoring, custom metrics, and profiling capabilities to help developers understand the performance and behavior of their applications.

What are @pm2/io's main functionalities?

Real-time Monitoring

This feature allows you to monitor your Node.js application in real-time, including HTTP requests and transactions. The code sample initializes the monitoring with HTTP and transaction tracking enabled.

const io = require('@pm2/io');
io.init({
  transactions: true,
  http: true
});

Custom Metrics

This feature allows you to create custom metrics to monitor specific aspects of your application. The code sample demonstrates how to create a custom metric named 'Realtime user' and update its value every second.

const io = require('@pm2/io');
const metric = io.metric({
  name: 'Realtime user',
  type: 'metric'
});

setInterval(() => {
  metric.set(Math.random() * 100);
}, 1000);

Profiling

This feature enables profiling of your Node.js application to help identify performance bottlenecks. The code sample initializes the profiling feature.

const io = require('@pm2/io');
io.init({
  profiling: true
});

Other packages similar to @pm2/io

FAQs

Package last updated on 22 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc